package com.example.server.serviceImpl;

import com.example.server.dao.ServeDAO;
import com.example.server.entity.CusServer;
import com.example.server.service.JobService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("JobServiceImpl")
public class JobServiceImpl implements JobService {

    @Autowired
    ServeDAO serveDAO;

    @Override
    public void add(CusServer cusServer) {
        serveDAO.add(cusServer);
    }

    @Override
    public List<CusServer> queryAll(){
        List<CusServer> dataList =  serveDAO.queryAll();
        return dataList;
    }
}
